package com.heima.article;


import com.heima.model.article.dtos.ArticleDto;

import com.heima.model.common.dtos.ResponseResult;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.Map;


@FeignClient(value = "leadnews-article")
public interface IArticleClient {



    @PostMapping("/api/v1/article/save")
    ResponseResult saveArticle(@RequestBody ArticleDto dto);

    @PostMapping("/api/v1/article/async")
    public ResponseResult saveOrUpdateArticle(@RequestBody ArticleDto articleDto);

}
